package com.chatinterfaceuni.controller;


import com.chatinterfaceuni.entity.BaseCommonResult;
import com.chatinterfaceuni.entity.CommodityOrder;
import com.chatinterfaceuni.service.impl.CommodityOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("api/commodity-order")
public class CommodityOrderController {

    @Autowired
    CommodityOrderService commodityOrderService;

    @PostMapping("selectList")
    @ResponseBody
    public BaseCommonResult selectList(@RequestParam(value = "user", required = false) String user){
        return new BaseCommonResult(commodityOrderService.selectList(user));
    }
}
